package cn.iocoder.yudao.module.design.convert.flowtaskaction;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.flowtaskaction.vo.FlowTaskActionCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.flowtaskaction.vo.FlowTaskActionExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.flowtaskaction.vo.FlowTaskActionRespVO;
import cn.iocoder.yudao.module.design.controller.admin.flowtaskaction.vo.FlowTaskActionUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.flowtaskaction.FlowTaskActionDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 任务处理模型 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface FlowTaskActionConvert {

    FlowTaskActionConvert INSTANCE = Mappers.getMapper(FlowTaskActionConvert.class);

    FlowTaskActionDO convert(FlowTaskActionCreateReqVO bean);

    FlowTaskActionDO convert(FlowTaskActionUpdateReqVO bean);

    FlowTaskActionRespVO convert(FlowTaskActionDO bean);

    List<FlowTaskActionRespVO> convertList(List<FlowTaskActionDO> list);

    PageResult<FlowTaskActionRespVO> convertPage(PageResult<FlowTaskActionDO> page);

    List<FlowTaskActionExcelVO> convertList02(List<FlowTaskActionDO> list);

}
